from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.keys import Keys
import time
account = input("Enter your account name: ")
password = input("Enter your account password: ")
driver = webdriver.Edge()
driver.get("https://wrdvpn.dlnu.edu.cn/http/77726476706e69737468656265737421f1e2559434357a467b1ac7a8945b367b94f42598d6d7/authserver/login?service=https%3A%2F%2Fwrdvpn.dlnu.edu.cn%2Flogin%3Fcas_login%3Dtrue")
driver.find_element(By.ID, "username").send_keys(account)
time.sleep(2)
driver.find_element(By.XPATH,"//*[@class='password item']/input").send_keys(password)
driver.find_element(By.ID, "login_submit").click()
time.sleep(2)
driver.find_element(By.XPATH,"//*[@class='block-group__content']/div[2]").click()
time.sleep(5)